import java.util.Vector;

public class Vector1 implements Structura {
	
	@SuppressWarnings("rawtypes")
	private Vector v = new Vector ();
	
	@SuppressWarnings("unchecked")
	public void adauga(int element) {
		v.add(element);
	}

	public void sterge(int element) {
		for (int i=0; i< v.size(); i++ ) {
			if ((Integer)v.get(i) == element)
				v.remove(i);
		}
	}

	// valoare - afiseaza valoarea elementului aflat pe o pozitie data
	public void valoare (int indice){
		System.out.println("Valoarea de pe pozitia "+indice+" este "+ v.get(indice));
	}

	public int size() {
		return v.size();
	}

	public int get(int i) {
		return (Integer) v.get(i);
	}  
}
